package com.xtkj.superclub_entity.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lizheqi
 * @create 2019-12-25-10:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName("order_product_map")
public class OrderProductMap implements Serializable {
    @TableId(value = "id",type = IdType.INPUT)
    private String id;//订单商品编号
    private String proId;
    @TableField(exist = false)
    private Product product;//商品编号
    private String orderId;
    @TableField(exist = false)
    private Order order;//订单编号
    private int cnt;//购买数量
    private double price;//单价
    private String sizeId;
    @TableField(exist = false)
    private Size size;//尺寸编号
    private String colorId;
    @TableField(exist = false)
    private Color color;//颜色编号
}
